package com.gitee.ixtf.vertx.internal.converter

import com.gitee.ixtf.vertx.ParameterConverter
import com.gitee.ixtf.vertx.internal.rc
import graphql.schema.DataFetchingEnvironment
import io.vertx.ext.web.RoutingContext

object RoutingContextParameterConverter : ParameterConverter<RoutingContext> {
  override suspend fun convert(env: DataFetchingEnvironment): RoutingContext = env.rc()

  override suspend fun convert(rc: RoutingContext) = rc
}
